跳到主要内容

SetVisible

Sets the state of sheet visibility.

Syntax

expression.SetVisible(isVisible);

expression - A variable that represents a ApiWorksheet class.

Parameters

NameRequired/OptionalData typeDefaultDescription
isVisibleRequiredbooleanSpecifies if the sheet is visible or not.

Returns

This method doesn't return any data.

Example

This example sets the state of sheet visibility.

var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetVisible(true);
oWorksheet.GetRange("A1").SetValue("The current worksheet is visible.");